import React, {Component} from 'react';
import {Router,Stack,Scene} from 'react-native-router-flux';
import App from './App';
import MovieList from './src/components/movies/MovieList';
import MovieDetail from './src/components/movies/MovieDetail';

class Main extends Component {
  constructor(props){
    super(props)
    this.state = {}
  }
  render() {
    return <Router sceneStyle={{backgroundColor:'#fff'}}>
      <Stack key="root">
        <Scene key="app" component={App} title="" hideNavBar={true}/>
        <Scene key="movieList" component={MovieList} title="热映电影列表"/>
        <Scene key="movieDetail" component={MovieDetail} title="电影详情页"/>
      </Stack>
    </Router>
  }
}

export default Main;
